package com.clz.hyperit.util;

import java.util.Random;

public class RandomCode {
	private static String codes = "123456789abcdefghjkmnopqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ";
	private String text;
	private static int len = 4;
	private static Random r = new Random();
	
	public String getText() {
		return text;
	}
	
	public static String randomChar() {
		
		StringBuffer sb = new StringBuffer(); 
		for(int i = 0;i<len;i++){
			int index = r.nextInt(codes.length());
			sb.append(codes.charAt(index));
		} 
		return sb.toString();
	}
	
}
